package com.fay.designPattern.oop.basic;

public class ShoppingCartItem {
    private double price;

    public double getPrice() {
        return price;
    }

    private ShoppingCartItem(double price) {
        this.price = price;
    }

    public static ShoppingCartItem valueOf(double price) {
        return new ShoppingCartItem(price);
    }

    public void setPrice(double v) {
        this.price = v;
    }
}